﻿#region Copyright and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ezsocio
 * ==============================================================================*/
#endregion

#region

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#endregion

namespace DusonFramework.TemplateEngine
{
    /// <summary>
    /// The contract of the template
    /// </summary>
    public class TemplateContract
    {
        private Dictionary<string, string> _parameters = null;
        private string _name;

        /// <summary>
        /// Initializes a new instance of the <see cref="TemplateContract"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        public TemplateContract(string name)
        {
            _parameters = new Dictionary<string, string>();
            _name = name;
        }

        /// <summary>
        /// Gets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name
        {
            get
            {
                return _name;
            }
        }

        /// <summary>
        /// Gets or sets the parameters.
        /// </summary>
        /// <value>The parameters.</value>
        public Dictionary<string, string> Parameters
        {
            get
            {
                return _parameters;
            }
            set
            {
                _parameters = value;
            }
        }
    }
}
